package com.su.dolphin.utils.mgr;

import android.content.Context;

import com.su.dolphin.DpApp;
import com.su.dolphin.utils.DataStoreUtil;

/**
 * 保存各种设置数据, 所有关于App *设置* 的数据请保持在这里, 将来可能会上传到云端,做设置同步
 */
public class DpSettingManager extends DataStoreUtil
{
    
    public static String SET_SHOW_PIC = "SET_SHOW_PIC";
    public static String SET_ACMODE = "SET_ACMODE";
    
    private final String FILE = "settings";
    private static DpSettingManager sDataStoreMgr;
    
    public static DpSettingManager i() {
        if (sDataStoreMgr == null) {
            sDataStoreMgr = new DpSettingManager();
            sDataStoreMgr.setPath();
        }
        return sDataStoreMgr;
    }
    
    protected void setPath() {
        mSharedPreferences = DpApp.getContext().getSharedPreferences(FILE, Context.MODE_PRIVATE);
    }
    
}
